<?php
class MyPdo2 extends MyPdo{

	public static function init($stat = false){
		global $config;
		if(!$config){
			exit('缺少$config');
		}
		return parent::init($config['db_host'],$config['db_name'],$config['db_user'],$config['db_pwd'],$stat);
	}
}